package com.wejoy.video.middle.station.data.vo.evsapi;

import com.wejoy.video.middle.station.data.util.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @Author miracle_j
 * EVS部门
 * Create by 2024/3/21 4:34 PM
 */
@Component
public class EvsApiDeptVO {


    /**
     * id : 1000204
     * name : 深燃二期百讯_EVS联调测试项目
     * leaf : false
     */

    private int id;
    private String name;
    private boolean leaf;

    /** api params **/
    //组织父级id 默认查全部
    private Integer parentId = -1;
    //是否包含下级目录，当传递该参数时会查询到父目录下的所有组织 默认不查询
    private Boolean includeLower;

    public EvsApiDeptVO() {
    }

    public EvsApiDeptVO(String name, Integer parentId, Boolean includeLower) {
        this.name = name;
        this.parentId = parentId;
        this.includeLower = includeLower;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Boolean getIncludeLower() {
        return StringUtils.isEmpty(name)?false:true;
    }

    public void setIncludeLower(Boolean includeLower) {
        this.includeLower = includeLower;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = !leaf;
    }
}
